from selenium.webdriver.common.by import By


class BillLocator:

    #bill_tab
    bill_tab = (By.XPATH, "//div[contains(@data-menu-id,'BILLS')]")

    # bill_statement_tab
    bill_statement_tab = (By.CSS_SELECTOR, '[path="/work_bench/billStatement"]')

    #spend_summamary_tab
    spend_summary_tab=(By.CSS_SELECTOR,'[path="/work_bench/bills"]')


    # 翻页
    page_total = (By.CSS_SELECTOR, '[class="antd4-pagination-total-text"]')

    #amount
    amount=(By.CSS_SELECTOR,'[class="antd4-table-row antd4-table-row-level-0"]>:nth-child(5)>div')

    #invoice_download
    invoice_download=(By.CSS_SELECTOR,'[class="antd4-space antd4-space-horizontal antd4-space-align-center"]>:nth-child(1)>button')

    #billing_statement_download
    billing_statement_download=(By.CSS_SELECTOR,'[class="antd4-space antd4-space-horizontal antd4-space-align-center"]>:nth-child(3)>button')

    #billing_cycle_input
    billing_cycle_input=(By.CSS_SELECTOR,'[id="billCycleValue"]')

    # billing_cycle_detail_input
    billing_cycle_detail_input=(By.CSS_SELECTOR,'[id="billingCycle"]')

    #search_button
    search_button=(By.CSS_SELECTOR,'[class="antd4-btn antd4-btn-primary"]')

    #search_button
    detail_search_button=(By.XPATH,'//div[@class="antd4-tabs-tabpane antd4-tabs-tabpane-active"]/div/form[1]//button[@class="antd4-btn antd4-btn-primary"]')

    #pretax_amount
    pretax_amount=(By.XPATH,"//div[contains(@class,'overView')]/div[3]//td[@class='antd4-table-cell'][3]//span")

    #detail_button
    detail_button=(By.CSS_SELECTOR,'[class="antd4-tabs-nav-list"]>:nth-child(2)>div')

    #detail_pretax_amount
    detail_pretax_amount=(By.XPATH,'//div[@class="antd4-tabs-tabpane antd4-tabs-tabpane-active"]/div/div[3]//td[@class="antd4-table-cell"][5]/div')